home *** CD-ROM | disk | FTP | other *** search
/ Champak 108 / jogo-disk-108.iso / Games / steppenwolf_1_chapter_3.swf / scripts / DefineButton2_958 / BUTTONCONDACTION on(release, releaseOutside).as < prev   
Text File  |  2010-05-15  |  856b  |  33 lines

  1. on(release, releaseOutside){
  2.    stopDrag();
  3.    tellTarget("../../InvArrete")
  4.    {
  5.       gotoAndPlay(1);
  6.    }
  7.    _X = eval("/Variables:Xposition");
  8.    _Y = eval("/Variables:Yposition");
  9.    if(_droptarget eq "/Inventaire/DropZone" and eval("/Variables:ObjetSelect") == 15)
  10.    {
  11.       loadVariablesNum("/web/steppenwolf/tracking.jsp?episode=23&stage=54",0);
  12.       set("/Variables:InvNb",eval("/Variables:InvNb") - 1);
  13.       set("/Variables:Inv" + _name,16);
  14.       set("/Variables:ObjetCombine",15);
  15.       tellTarget("../../ControlCombine")
  16.       {
  17.          play();
  18.       }
  19.       tellTarget("../../InvSelection")
  20.       {
  21.          gotoAndStop(17);
  22.       }
  23.    }
  24.    else
  25.    {
  26.       set("/Variables:Frame",_currentframe);
  27.       tellTarget("../../InvSelection")
  28.       {
  29.          gotoAndStop(eval("/Variables:Frame"));
  30.       }
  31.    }
  32. }
  33.